<script>
import { config, column } from './formConfig.js'
import BasicManage from '@/components/basic/BasicManage.vue'
export default {
    extends: BasicManage,
    data() {
        return {
            table_title: '集团',
            url: 'backstage',
            baseForm: {
                name: '',
                parent: 0,
                type: 'group',
            },
            queryForm: {
                size: 20,
                page: 1,
                type: 'group',
            },
            confirmText: '确认删除此条数据?本次操作会清空该区域下所有测点在数据库中的表和数据',
        }
    },
    created() {
        this.dialog.labelWidth = '120px'
        column[column.length - 1].buttons = [
            {
                text: '编辑',
                click: (val) => {
                    this.handleEdit(val)
                },
                icon: 'el-icon-edit',
            },
            {
                text: '删除',
                click: (val) => {
                    this.delete(val)
                },
                icon: 'el-icon-delete',
            },
        ]
        column[column.length - 1].if = this.operate
        this.dialog.config = config
        this.tableColumn = column
        this.getlist()
    },
}
</script>
